<?php if(empty($LinkVideo)){
$Ajust="style=margin-top:-320px;'";
}
else{
$Ajust="";
}
?>
<div class="Separator" <?php echo $Ajust; ?>>

<img src="./images/Separator.png">
</div>

<div class="ContentPhotos">

 <ul id="mycarousel<?php echo $idActu; ?>" class="jcarousel-skin-tango">
 <?php
 $recupPhotos=mysql_query("SELECT * FROM photosactu  WHERE idActu='$idActu' ORDER BY RAND() LIMIT 30 ") or die (mysql_error());
 $pi=0;
 $nbPhotos=mysql_num_rows($recupPhotos);
 while($rowP=mysql_fetch_array($recupPhotos)){
 $NomImage=$rowP['NomImage'];
 $TitreImgFR=$rowP['TitreImgFR'];
 $pi++;
	 if (($pi&1) && ($pi<$nbPhotos)){ ?>
	 <li><a id="example1" href="imagesActualites/Big/<?php echo $NomImage; ?>"  rel="ts<?php echo $idActu; ?>"><div class="PhotosImg" style="background-image:url(./imagesActualites/<?php echo $NomImage; ?>); "></div></a>
	 <?php
	// echo "<li><div class='PhotosImg' style='backgorund-image:url(./imagesActualites/Small".$NomImage.");'>Hello</div>";
	 }
	 else{
	 	if (($pi&1) && ($pi==$nbPhotos)){ ?>
		 <li><a id="example1" href="imagesActualites/Big/<?php echo $NomImage; ?>"  rel="ts<?php echo $idActu; ?>"><div class="PhotosImg" style="background-image:url(./imagesActualites/<?php echo $NomImage; ?>); "></div></a></li>
		 <?php //echo "<li><div class='PhotosImg' style='backgorund-image:url(imagesActualites/Small".$NomImage.");'></div></li>";
		 }
		 else{ ?>
		<a id="example1" href="imagesActualites/Big/<?php echo $NomImage; ?>"  rel="ts<?php echo $idActu; ?>"> <div class="PhotosImg" style="background-image:url(./imagesActualites/<?php echo $NomImage; ?>); "></div></a></li>
		 <?php
		// echo "<div class='PhotosImg' style='backgorund-image:url(imagesActualites/Small".$NomImage.");'></div></li>";
		 }

	 }
 }
 
 ?>
 
  </ul>
<div class="VoirPhotos"><a href="index.php?page=Pics&Year=<?php echo $Year;?>&lang=<?php echo $lang; ?>"style="cursor:pointer;"><img src="./images/VoirPhotos.png"></a></div>
</div>
